package com.erb.service.ljy;

import com.erb.entity.Thirdparty;
import com.erb.entity.User;
import com.erb.mapper.setUserMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * ClassName: setUserService
 * Description:
 * date: 2020/6/12 14:23
 *
 * @author JY
 */


@Service
@Transactional
public class setUserService {

	@Resource
	private setUserMapper setUserMapper;

	public User SearchUserById(Integer id) {
		User users = setUserMapper.SearchUserById(id);
		return users;
	}

	public Thirdparty thisel(int uid) {
		Thirdparty thirdparty = setUserMapper.selthi(uid);
		return thirdparty;
	}

	public User phonesel(int id, String phone) {
		return setUserMapper.selphone(id, phone);
	}

	public Integer phoneupd(int id, String phone) {
		return setUserMapper.updphone(id, phone);
	}

	public User emailsel(int id, String email) {
		return setUserMapper.selemail(id, email);
	}

	public Integer emailupd(int id, String email) {
		return setUserMapper.updemail(id, email);
	}

	public User pwdsel(int id, String pwd) {
		return setUserMapper.selpwd(id, pwd);
	}

	public Integer pwdupd(int id, String xmm) {
		return setUserMapper.updpwd(id, xmm);
	}

	public Thirdparty thirsel(int uid, int pwd) {
		return setUserMapper.selthir(uid, pwd);
	}

	public Integer thiupd(int uid, int pwd) {
		return setUserMapper.updthi(uid, pwd);
	}
}
